-- GENERATED SPELL FOR [Amani Lynx Cub] --


function spell0_24064(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(43317,pUnit)
pUnit:RegisterEvent('Sorts_24064', 10293, 1)
end

function spell1_24064(pUnit, Event) --@Gut Rip,n/a--
pUnit:FullCastSpellOnTarget(43358,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24064', 6345, 1)
end

function spell2_24064(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(42943,pUnit)
pUnit:RegisterEvent('Sorts_24064', 618, 1)
end

function Sorts_24064(pUnit, Event)
local choix_sorts_24064 = math.random(0, 2)
if choix_sorts_24064 == 0 then
pUnit:RegisterEvent('spell0_24064', 1, 1)
end
if choix_sorts_24064 == 1 then
pUnit:RegisterEvent('spell1_24064', 1, 1)
end
if choix_sorts_24064 == 2 then
pUnit:RegisterEvent('spell2_24064', 1, 1)
end
end

function mob24064_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24064', math.random(1500, 3000), 1)
end

function mob24064_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24064_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24064_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24064, 1, 'mob24064_Action')
RegisterUnitEvent(24064, 2, 'mob24064_Leave')
RegisterUnitEvent(24064, 3, 'mob24064_Kill')
RegisterUnitEvent(24064, 4, 'mob24064_Die')
